<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>首页</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

    <meta name="viewport" content="width=1226">
    <meta http-equiv="x-dns-prefetch-control" content="on">
    <meta http-equiv="Cache-Control" content="no-transform ">
    <meta http-equiv="Cache-Control" content="no-siteapp">

    <link rel="stylesheet" type="text/css" href="/css/seckill.css" />
    <!-- jquery -->
    <script type="text/javascript" src="/js/jquery.min.js"></script>
    <!-- layer -->
    <script type="text/javascript" src="/layer/layer.js"></script>

</head>
<body>

<div id="app">

    <div class="headerpage"></div>

    <div class="content"></div>

    <div class="footerpage"></div>

</div>

<script type="text/javascript">
    /* 1.页头和页脚 */
    $(".headerpage").load("header.html");
    $(".content").load("content.html");
    $(".footerpage").load("footer.html");

    var $GLOBAL_PAGE_INFO = {
        data: null
    };
</script>




<script>
    function logout(){
        $.ajax({
            url: "/login/logout",
            type: "POST",
            data:{},
            success:function(data){
                if(data.code == 0){
                    alert('注销成功!');
                    window.location.href="/login/index";
                }else{
                }
            },
            error:function(){
                layer.closeAll();
            }
        });
    }
    function login(){
        $.ajax({
            url: "/login/logout",
            type: "POST",
            data:{},
            success:function(data){
                window.location.href="/login/index";
            },
            error:function(){
                layer.closeAll();
            }
        });
    }
</script>

</body>
</html>
